package com.co.user.pojo;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @author ldl.plus
 * @date 2020年06月22日  0:41
 * UsUser构建
 */
@Table(name = "us_user")
public class User implements Serializable {

    @Id
    @Column(name = "username")
    private String username;//用户名唯一主键

    @Column(name = "password")
    private String password;//密码

    @Column(name = "nickname")
    private String nickname;//昵称

    @Column(name = "gender")
    private Integer gender;//性别

    @Column(name = "telephone")
    private String telephone;//电话

    @Column(name = "email")
    private String email;//邮箱

    @Column(name = "region")
    private String region;//地区

    @Column(name = "user_image")
    private String userImage;//用户头像地址

    @Column(name = "birthday")
    private Date birthday;//生日

    @Column(name = "lastlogin_time")
    private Date lastloginTime;//最后登录时间

    @Column(name = "signature")
    private String signature;//个性签名

    @Column(name = "create_time")
    private Date createTime;//创建时间

    @Column(name = "update_time")
    private Date updateTime;//更新时间


    //get方法
    public String getUsername() {
        return username;
    }

    //set方法
    public void setUsername(String username) {
        this.username = username;
    }

    //get方法
    public String getPassword() {
        return password;
    }

    //set方法
    public void setPassword(String password) {
        this.password = password;
    }

    //get方法
    public String getNickname() {
        return nickname;
    }

    //set方法
    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    //get方法
    public Integer getGender() {
        return gender;
    }

    //set方法
    public void setGender(Integer gender) {
        this.gender = gender;
    }

    //get方法
    public String getTelephone() {
        return telephone;
    }

    //set方法
    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    //get方法
    public String getEmail() {
        return email;
    }

    //set方法
    public void setEmail(String email) {
        this.email = email;
    }

    //get方法
    public String getRegion() {
        return region;
    }

    //set方法
    public void setRegion(String region) {
        this.region = region;
    }

    //get方法
    public String getUserImage() {
        return userImage;
    }

    //set方法
    public void setUserImage(String userImage) {
        this.userImage = userImage;
    }

    //get方法
    public Date getBirthday() {
        return birthday;
    }

    //set方法
    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    //get方法
    public Date getLastloginTime() {
        return lastloginTime;
    }

    //set方法
    public void setLastloginTime(Date lastloginTime) {
        this.lastloginTime = lastloginTime;
    }

    //get方法
    public String getSignature() {
        return signature;
    }

    //set方法
    public void setSignature(String signature) {
        this.signature = signature;
    }

    //get方法
    public Date getCreateTime() {
        return createTime;
    }

    //set方法
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    //get方法
    public Date getUpdateTime() {
        return updateTime;
    }

    //set方法
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }


}
